<?php
/*
 * Created on Nov 8, 2010
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
include_once("./configure/configure.php");		//--> global var



if(isset($_GET['id'])){
	$partnerID = $_GET['id'];
	
	$arrDomain = explode(',', PARTNER_COOKIE_DOMAIN);
	
	foreach($arrDomain as $domain){
		setcookie(PARTNER_COOKIE_NAME, $partnerID, PARTNER_COOKIE_EXPIRE ,PARTNER_COOKIE_PATH, $domain);
	}
	
	
	$location = HOME_URL_HTTP;
	
	header("Location: $location");
}
?>
